package com.ruoyi.university.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 校区对象 university_campus
 * 
 * @author atzx
 * @date 2024-04-14
 */
public class UniversityCampus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long campusId;

    /** 校区名称 */
    @Excel(name = "校区名称")
    private String campusName;

    /** 所属大学 */
    @Excel(name = "所属大学")
    private Long universityId;

    /** 描述信息 */
    @Excel(name = "描述信息")
    private String description;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateAdded;

    public void setCampusId(Long campusId) 
    {
        this.campusId = campusId;
    }

    public Long getCampusId() 
    {
        return campusId;
    }
    public void setCampusName(String campusName) 
    {
        this.campusName = campusName;
    }

    public String getCampusName() 
    {
        return campusName;
    }
    public void setUniversityId(Long universityId) 
    {
        this.universityId = universityId;
    }

    public Long getUniversityId() 
    {
        return universityId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setDateAdded(Date dateAdded) 
    {
        this.dateAdded = dateAdded;
    }

    public Date getDateAdded() 
    {
        return dateAdded;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("campusId", getCampusId())
            .append("campusName", getCampusName())
            .append("universityId", getUniversityId())
            .append("description", getDescription())
            .append("dateAdded", getDateAdded())
            .toString();
    }
}
